﻿using Abp.Dependency;
using DHJ.Cost.MessageHandle;
using DHJ.Messages.Production;
using NServiceBus;

namespace DHJ.Cost.Tasks
{
    public class BarcodeCreatedHandler : IHandleMessages<BarcodeCreated>
    {

        public async System.Threading.Tasks.Task Handle(BarcodeCreated message, IMessageHandlerContext context)
        {

            var handler = IocManager.Instance.Resolve<MessageHandleAppService>();
            await handler.HandleBarcodeCreated(message);

        }
    }
}